/*
========================================================================
 Name        : ExpensesForm.h
 Author      : Vishal Dharankar
 Copyright   : Created by Vishal Dharankar 
 Description : 
========================================================================
*/
#ifndef EXPENSESFORM_H
#define EXPENSESFORM_H

// [[[ begin generated region: do not modify [Generated Includes]
#include <aknform.h>
// ]]] end generated region [Generated Includes]


// [[[ begin [Event Handler Includes]
// ]]] end [Event Handler Includes]

// [[[ begin generated region: do not modify [Generated Forward Declarations]
class MEikCommandObserver;		
class CEikDateEditor;
class CEikFloatingPointEditor;
class CAknPopupFieldText;
class CEikEdwin;
// ]]] end generated region [Generated Forward Declarations]

/**
 * @class	CExpensesForm ExpensesForm.h
 */
class CExpensesForm : public CAknForm
	{
public: // constructors and destructor

	CExpensesForm( MEikCommandObserver* aCommandObserver );
	static CExpensesForm* NewL( MEikCommandObserver* aCommandObserver );
	static CExpensesForm* NewLC( MEikCommandObserver* aCommandObserver );
	virtual ~CExpensesForm();
	
	// from CEikDialog
	TKeyResponse OfferKeyEventL( 
			const TKeyEvent& aKeyEvent, 
			TEventCode aType );
	
protected: 
	// from CAknDialog	
	void PreLayoutDynInitL();
	TBool OkToExitL( TInt aButtonId );

	// from CAknForm
	void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
	TBool QuerySaveChangesL();
	TBool SaveFormDataL(); 
	void DoNotSaveFormDataL();

private:
	void LoadFromDataL();
	MEikCommandObserver* iCommandObserver;
	// [[[ begin generated region: do not modify [Generated Methods]
public: 
	// ]]] end generated region [Generated Methods]
	
	// [[[ begin generated region: do not modify [Generated Type Declarations]
public: 
	// ]]] end generated region [Generated Type Declarations]
	void InitForm();
	
	// [[[ begin generated region: do not modify [Generated Instance Variables]
private: 
	CEikDateEditor* iDateEditor;
	CEikFloatingPointEditor* iFloatingPointEditorExp;
	CAknPopupFieldText* iPopupFieldTextCat;
	CEikEdwin* iEditNote;
	// ]]] end generated region [Generated Instance Variables]
	
	
	// [[[ begin [Overridden Methods]
protected: 
	// ]]] end [Overridden Methods]
	
	
	// [[[ begin [User Handlers]
protected: 
	// ]]] end [User Handlers]
	
	};

#endif // EXPENSESFORM_H
